function Init(id)
	print('hamlet init')
	AddIntVar(id, 'age', 0)
	return 1
end

function EndTurn(id)
	age = GetIntVar(id, 'age')
	age = age + 1
	SetIntVar(id, 'age', age)
	if age == 1 then
		print('hamlet ready for upgrade')
		AddConstruction(id, 'encampment')
		AddConstruction(id, 'crossroads')
		-- AddConstruction(id, 'factory')
		-- AddConstruction(id, 'school')
	end
	return 1
end